package com.xingxuecn.limit.dao;

import com.xingxuecn.limit.common.model.dto.Menu;
import com.xingxuecn.limit.common.model.dto.RoleMenu;

import java.sql.SQLException;
import java.util.List;

/**
 * @author Kris at 2018/9/12 14:39
 */
public interface RoleMenuDao {
    int add(RoleMenu roleMenu) throws SQLException;

    int delete(RoleMenu roleMenu) throws SQLException;

    List<Menu> loadMenuByRole(Integer roleId) throws SQLException;
}
